package entity;

import com.alibaba.fastjson.annotation.JSONField;

public class Route {
    @JSONField(name = "id")
    private Integer id;
    @JSONField(name = "title")
    private String title;
    @JSONField(name = "departure")
    private String departure; //出发地
    @JSONField(name = "destination")
    private String destination; //目的地
    @JSONField(name = "departureDate")
    private String departureDate; //出发日期
    @JSONField(name = "endDate")
    private String endDate; //结束日期
    @JSONField(name = "price")
    private Float price; //价格
    @JSONField(name = "pictureUrl")
    private String pictureUrl;
    @JSONField(name = "introduce")
    private String introduce; //简介
    @JSONField(name = "status")
    private Integer status; //状态 1发布 0未发布

    public Route(Integer id, String title, String departure, String destination, String departureDate,
                 String endDate, Float price, String pictureUrl, String introduce, Integer status) {
        this.id = id;
        this.title = title;
        this.departure = departure;
        this.destination = destination;
        this.departureDate = departureDate;
        this.endDate = endDate;
        this.price = price;
        this.pictureUrl = pictureUrl;
        this.introduce = introduce;
        this.status = status;
    }

    public Route() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDeparture() {
        return departure;
    }

    public void setDeparture(String departure) {
        this.departure = departure;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getDepartureDate() {
        return departureDate;
    }

    public void setDepartureDate(String departureDate) {
        this.departureDate = departureDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Route{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", departure='" + departure + '\'' +
                ", destination='" + destination + '\'' +
                ", departureDate='" + departureDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", price=" + price +
                ", pictureUrl='" + pictureUrl + '\'' +
                ", introduce='" + introduce + '\'' +
                ", status=" + status +
                '}';
    }
}
